<div class="pageContent">
    <form method="post" action="{:url('Subscribe/addSubscribe')}" class="pageForm" onsubmit="return validateCallback(this, navTabAjaxDone)">
        <div class="pageFormContent" layoutH="58">
<!--            <div class="unit">-->
<!--                <label style="width:200px;font-weight:bold;color:#ff6c60">14天内有以下日期未设置：</label>-->
<!--            </div>-->
<!--            <div class="unit">-->
<!--                <label style="width:200px;font-weight:bold;color:#ff6c60">14天内有以下日期未设置：</label>-->
<!--            </div>-->
            <div class="unit">
                <label>选择日期：</label>
                <input name="date_date" type="text" class="required date" datefmt="yyyy-MM-dd" readonly="true" minDate="{$minDate}" maxDate="{$maxDate}">
            </div>
            {eq name="company_id" value="45"}
            <div class="unit">
                <label style="width:200px;font-weight:bold;color:#ff6c60">汽油车</label>
            </div>
            {volist name="time_state" id="item"}
            <div class="unit">
                <label>{$item.time_state|strtotime|date="H:i",###}</label>
                <input type="hidden" name="time_state_id[{$key}]" value="{$item.id}"/>
                <input type="number" name="num_gas[{$key}]" size="10" maxlength="50" class="required digits" value="{$subscribe_num_gas}" /> 台
            </div>
            {/volist}
            <div class="unit">
                <label style="width:200px;font-weight:bold;color:#ff6c60">柴油车</label>
            </div>
            {volist name="time_state" id="item"}
            <div class="unit">
                <label>{$item.time_state|strtotime|date="H:i",###}</label>
                <input type="number" name="num_diesel[{$key}]" size="10" maxlength="50" class="required digits" value="{$subscribe_num_diesel}" /> 台
            </div>
            {/volist}
            <div class="unit">
                <label style="width:200px;font-weight:bold;color:#ff6c60">挂车</label>
            </div>
            {volist name="time_state" id="item"}
            <div class="unit">
                <label>{$item.time_state|strtotime|date="H:i",###}</label>
                <input type="number" name="num[{$key}]" size="10" maxlength="50" class="required digits" value="{$subscribe_num}" /> 台
            </div>
            {/volist}
            {else/}
            <div class="unit">
                <label style="width:200px;font-weight:bold;color:#ff6c60">填写各时间段可预约车辆数</label>
            </div>
            {volist name="time_state" id="item"}
            <div class="unit">
                <label>{$item.time_state|strtotime|date="H:i",###}</label>
                <input type="hidden" name="time_state_id[{$key}]" value="{$item.id}"/>
                <input type="number" name="num[{$key}]" size="10" maxlength="50" class="required digits" value="{$subscribe_num}" /> 台
            </div>
            {/volist}
            {/eq}
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>
</div>

